package com.example.combwyaq.mvp.presenter;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * P层顶层接口,定义P层公共部分
 * */
/*使用lifecycle框架实现presenter下方法越acativity 或fragement生命周期绑定*/
public interface IPresenter extends LifecycleObserver {
    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void Destroy();
}
